import request from '@/utils/request'



// 列表
export function planList(data) {
  return request({
    url: '/washing/cart/menu/query',
    method: 'post',
    data: data
  })
}

// 新增
export function addPlan(data) {
  return request({
    url: '/washing/cart/menu',
    method: 'post',
    data: data
  })
}

// 编辑
export function updatePlan(data) {
  return request({
    url: '/washing/cart/menu/modify',
    method: 'post',
    data: data
  })
}

// 删除
export function deletePlan(data) {
  return request({
    url: `/washing/cart/menu/delete?id=${data.id}`,
    method: 'post',
    data: data
  })
}


// 删除
export function cartTypes() {
  return request({
    url: `/washing/cart/types`,
    method: 'get'
  })
}
